import logo from './logo.svg';
import './App.css';
// import { BrowserRouter as Router, Route, Routes } from 'react-router-dom';
import { createBrowserRouter, RouterProvider } from 'react-router-dom'
import router from './router';
import Login from './pages/login';
import AdminPanel from './pages/AdminPanel';

function App() {
  return (
    // <Router>
    //     <Routes>
    //         <Route exact path="/" element={<Login/>} />
    //         <Route path="/admin" element={<AdminPanel/>} />
    //     </Routes>
    // </Router>
    <RouterProvider router={router} />
  );
}

export default App;
